<?php

namespace app\api\model;

use think\Model;

class VirtualLog extends Model
{
      protected $name = 'virtual_money_log';
      public function addLog($uid,$remark, $value)
      {
          VirtualLog::create([
              'user_id' => $uid,//id
              'value' => $value,//金额变化
              'remark' => $remark,//备注
              'create_time' => date('Y-m-d H:i:s'),//创建时间
          ]);
      }
}